
namespace Himall.Entity
{
    using System;
    using System.Collections.Generic;
    /// <summary>
    /// 商家结算明细 
    /// </summary>
    public partial class AccountDetailInfo:BaseModel
    {
        long _id;
        public new long Id { get{ return _id; } set{ _id=value; base.Id = value; } }
        public long ShopId { get; set; } = 0;
        /// <summary>
        /// 完成日期
        /// </summary>
        public System.DateTime Date { get; set; } = DateTime.Now;
        /// <summary>
        /// 订单ID
        /// </summary>
        public long OrderId { get; set; }
        /// <summary>
        /// 佣金
        /// </summary>
        public decimal CommissionAmount { get; set; }
        /// <summary>
        /// 退款金额
        /// </summary>
        public decimal RefundTotalAmount { get; set; }
        /// <summary>
        /// 退还佣金
        /// </summary>
        public decimal RefundCommisAmount { get; set; }
        /// <summary>
        /// 枚举 完成订单1，退订单0
        /// </summary>
        public EnumOrderType OrderType { get; set; } = 0;
        /// <summary>
        /// 运费金额
        /// </summary>
        public decimal FreightAmount { get; set; }
        /// <summary>
        /// 商品实付总额
        /// </summary>
        public decimal ProductActualPaidAmount { get; set; }
        /// <summary>
        /// 结算记录外键
        /// </summary>
        public long AccountId { get; set; }
        /// <summary>
        /// 订单下单日期
        /// </summary>
        public System.DateTime OrderDate { get; set; } = DateTime.Now;
        /// <summary>
        /// 退单的日期集合以;分隔
        /// </summary>
        public string OrderRefundsDates { get; set; }
        /// <summary>
        /// 分销佣金
        /// </summary>
        public decimal BrokerageAmount { get; set; }
        /// <summary>
        /// 退分销佣金
        /// </summary>
        public decimal ReturnBrokerageAmount { get; set; }
        public System.DateTime OrderFinshDate { get; set; } = DateTime.Now;
        /// <summary>
        /// 订单金额
        /// </summary>
        public decimal OrderAmount { get; set; }
        /// <summary>
        /// 结算金额
        /// </summary>
        public decimal SettlementAmount { get; set; }
        public string ShopName { get; set; }
        public string PaymentTypeName { get; set; }

        public virtual AccountInfo Himall_Accounts { get; set; }
    }
}
